package com.ozo.easy.gen.constant;

import com.ozo.easy.common.constant.BaseEnum;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * java类型枚举
 *
 * @author ozo
 * @date 2025-01-06
 */
@Getter
@RequiredArgsConstructor
public enum JavaType implements BaseEnum {

    STRING("String", "java.lang.String"),

    BYTE("Byte", "java.lang.Byte"),

    BOOLEAN("Boolean", "java.lang.Boolean"),

    SHORT("Short", "java.lang.Short"),

    INTEGER("Integer", "java.lang.Integer"),

    LONG("Long", "java.lang.Long"),

    FLOAT("Float", "java.lang.Float"),

    DOUBLE("Double", "java.lang.Double"),

    BIG_DECIMAL("BigDecimal", "java.math.BigDecimal"),

    LOCAL_DATE("LocalDate", "java.time.LocalDate"),

    LOCAL_DATETIME("LocalDateTime", "java.time.LocalDateTime"),

    LOCAL_TIME("LocalTime", "java.time.LocalTime"),

    INPUT_STREAM("InputStream", "java.io.InputStream"),
    ;

    /**
     * 描述
     */
    private final String desc;

    /**
     * java类型包名
     */
    private final String typePackage;

}